import java.util.ArrayList;
import java.util.List;

public class Solution1441 {
    public List<String> buildArray(int[] target, int n) {
        int t=0;
        List<String> list=new ArrayList<>();
        for (int i=1;i<=n;i++){
            list.add("Push");
            if (target[t]>i){
                list.add("Pop");
            }else {
                t++;
                if (t==target.length){
                    break;
                }
            }
        }
        return list;
    }

    public static void main(String[] args) {
        System.out.println(new Solution1441().buildArray(new int[]{1,3},3));
    }
}
